package cn.tedu.review;
//12.创建测试类
public class TestAnimal {
    public static void main(String[] args) {
        //13.创建鸽子类对象
        Pigeon p = new Pigeon();
        System.out.println(p.eggNumbers);
        System.out.println(p.LEG_NUMBERS);
        p.layEggs();
        p.fly();
        Bird b = new Pigeon();
        System.out.println(b.eggNumbers);
        System.out.println(b.LEG_NUMBERS);
        b.layEggs();
        b.fly();
        Swallow s = new Swallow();
        System.out.println(s.eggNumbers);
        System.out.println(s.LEG_NUMBERS);
        s.fly();
        s.layEggs();
        s.makeNest();
        Bird b2 = new Swallow();
        System.out.println(b2.eggNumbers);
        System.out.println(b2.LEG_NUMBERS);
        b2.fly();
        b2.layEggs();
        Ant a = new Ant();
        System.out.println(a.eggNumbers);
        System.out.println(a.LEG_NUMBERS);
        a.fly();
        a.spawn();
        Bee be = new Bee();
        System.out.println(be.eggNumbers);
        System.out.println(be.LEG_NUMBERS);
        be.fly();
        be.spawn();
        be.makeHoney();
    }
}
